package Runde8;

public class Woodcutter extends TwoWayWorker{

	private static int counter = 0;
	private final int nr;
	
	/**
	 * @precondition None of the arguments may be empty (null).
	 * @postcondition Creates a woodcutter.
	 */
	public Woodcutter(Storage source, Storage target, int wTime, int toGet, int toGive, Company comp) {
		super(source,target, wTime, toGet, toGive, comp);
		this.nr = (counter++ % 5) + 1;
	}
	
	/**
	 * @postcondition Returns a readable identification of the worker.
	 */
	public String toString() {
		return "Woodcutter " + nr;
	}

}
